package org.upc.edu.AIAExamples.communication;

import java.util.Random;

public class FuncioGauss {
	Random rand;
	long K,S;
	
	public FuncioGauss(long nk, long ns) {
		rand = new Random();
		K = nk;
		S = ns;
	}
	
	public long next() {
		return K + (long)(rand.nextGaussian()*S);
	}
}
